<%@ Reference Page="~/blog.aspx" %>
<%@ Reference Control="~/Controls/Member.ascx" %>
<%@ Page language="vb" EnableViewStateMac="true" Inherits="_2bMatesSite.view_member_blog" CodeFile="view_member_blog.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<%@ Register TagPrefix="Member" TagName="Member" Src="Controls/Member.ascx" %>
<form id="Form1" method="post" runat="server">
	<table height="100%" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
		<tr runat=server id="trUserShortCut">
			<td colspan=3  align="center">
				<member:member runat="server" id="ucMemberShortcut"/>
			</td>
		</tr>
		<tr>
			<tr>
				<td class="page_title" colspan="3"><asp:literal id="litMember" runat="server"></asp:literal><asp:literal id="litTitle_end" runat="server">&nbsp;Blog</asp:literal></td>
			</tr>
			<td class="main_table_border" vAlign="top" height="100%">
				<div class="content">
					<asp:label id="lblNoBlog" runat="server">There are no blogs posted.</asp:label>
					<ASP:DATAGRID id="dgMessages" runat="server" AutoGenerateColumns="False" GridLines="None" Width="100%"
						PagerStyle-Mode="NumericPages" PagerStyle-HorizontalAlign="Right" ShowHeader="False" onselectedindexchanged="dgMessages_SelectedIndexChanged">
						<ItemStyle VerticalAlign="Top"></ItemStyle>
						<HeaderStyle Wrap="False"></HeaderStyle>
						<Columns>
							<asp:TemplateColumn>
								<ItemStyle Wrap="False"></ItemStyle>
								<ItemTemplate>
									<TABLE class=blog_table cellSpacing=0 cellPadding=0 width="100%" border=0>
										<TR>
											<TD align=left class="main_text">
												<div class="content_trl">
													<asp:Label id=lblDate runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Date") %>' Font-Bold="True" cssclass="bulletin_orange"></asp:Label><BR><BR>
													<B><asp:Label id=lblSubject runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Subject") %>'></asp:Label></B><BR><BR><PRE style="WORD-WRAP: break-word" WRAP><asp:Literal id=litBlogBody runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Body") %>'></asp:Literal></PRE><br />
													<asp:Label id=lblTimePosted runat="server" Font-Bold="True">
														<%# DataBinder.Eval(Container.DataItem, "Time") %>
													</asp:Label>&nbsp;-&nbsp; 
													<asp:LinkButton id=lbViewComments runat="server" Font-Bold="True" CssClass="main_text_bold" Visible='<%# DataBinder.Eval(Container.DataItem, "CommentsCountVisible") %>' CommandArgument='<%# DataBinder.Eval(Container.DataItem, "BlogID") %>' CommandName="ViewComments">
														<%# DataBinder.Eval(Container.DataItem, "CommentsCount") %>
													</asp:LinkButton>
													<asp:Label id=lblViewCommentsNull runat="server" Visible='<%# DataBinder.Eval(Container.DataItem, "CommentsCountNullVisible") %>' Font-Bold="True">0 Comments</asp:Label>
														&nbsp;-&nbsp; 
													<asp:LinkButton id=lbAddComment runat="server" Font-Bold="True" CssClass="main_text_bold" 
														CommandArgument='<%# DataBinder.Eval(Container.DataItem, "BlogID") %>' CommandName="AddComment" Visible='<%# DataBinder.Eval(Container.DataItem, "ShowAddCommentLink") %>'>Add Comment </asp:LinkButton>
														<asp:label id="lblNotInFriendsListMsg" runat="server" Font-Bold="True" Text="Only friends can post comments in blogs." Visible='<%# DataBinder.Eval(Container.DataItem, "ShowNotInFriendsListMsg") %>'></asp:label>
												</div>	
											</TD>
										</TR>
									</TABLE>
								</ItemTemplate>
								<FooterStyle HorizontalAlign="Left" VerticalAlign="Top"></FooterStyle>
							</asp:TemplateColumn>
						</Columns>
						<PagerStyle HorizontalAlign="Right" Mode="NumericPages"></PagerStyle>
					</ASP:DATAGRID>
				</div>												
			</td>
			<!-- BEGIN SKYSCRAPER ADVERTISEMENT -->	
			<!--
			<td class="small" width="10">&nbsp;</td>
			<td class="border_adv" vAlign="top" width="203" height="100%">
				<table cellSpacing="1" cellPadding="0" width="100%" border="0">
					<tr>
						<td class="small" width="10">&nbsp;</td>
						<td class="advertisement" width="193"><asp:Literal id="litSkyscraperAdvertisement" runat=server></asp:literal></td>
					</tr>
				</table>
			</td>-->
			<!-- END SKYSCRAPER ADVERTISEMENT -->	
		</tr>
	</table>
</form>
